home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / guis / gadutil / docs / autodocs / 07.gu_gadgetarrayindex < prev    next >
Encoding:
Text File  |  1996-07-16  |  762 b   |  26 lines

  1. gadutil.library/GU_GadgetArrayIndex       gadutil.library/GU_GadgetArrayIndex
  2.  
  3.    NAME
  4.     GU_GadgetArrayIndex -- Get a gadget's index in the LayoutGadget array.
  5.  
  6.    SYNOPSIS
  7.     index = GU_GadgetArrayIndex(id, gadgets)
  8.     D0,D1,SR(Z)                 D0  A0
  9.  
  10.     WORD GU_GadgetArrayIndex(WORD, struct LayoutGadget *);
  11.  
  12.    FUNCTION
  13.     Get a gadget's index in the Layoutgadget structure.
  14.    INPUTS
  15.     id      - The ID of the gadget you want to find.
  16.     gadgets - The LayoutGadget array that this gadget is defined in.
  17.  
  18.    RESULT
  19.     index - The index into the LayoutGadget array of the entry with the
  20.             gadget ID you asked for. Returns -1 for failure.
  21.  
  22.     SR(Z) - Set for failure. Cleared otherwise. Probably only usable for
  23.             assembly language programmers.
  24.  
  25.    SEE ALSO
  26.